/**
 * 
 */
package com.cuc.platform.core.componet.security.service;

import java.util.List;

import com.cuc.platform.core.componet.security.domain.SecurityResource;
import com.cuc.platform.core.service.ServiceException;

/**
 * @author peepul
 *
 * 系统资源业务服务接口
 */
public interface SecurityResourceService {
	
	/**
	 * 获取所有资源对象
	 * 
	 * @return List
	 */
	public List<SecurityResource> getAllRescs();
	
	/**
	 * 根据id获取资源对象
	 * 
	 * @param id
	 * @return SecurityResource
	 */
	public SecurityResource getRescById(Long id);
	
	/**
	 * 修改资源对象
	 * 
	 * @param resc
	 */
	public void updateResc(SecurityResource resc) throws ServiceException;
	
	/**
	 * 新增资源对象
	 * 
	 * @param resc
	 */
	public void addResc(SecurityResource resc) throws ServiceException;
	
	/**
	 * 删除资源
	 * 
	 * @param id
	 */
	public void delResc(Long id) throws ServiceException;
	
	/**
	 * 删除多个选择的资源
	 * 
	 * @param idArray
	 */
	public void delMultiRescs(String ... idArray) throws ServiceException;
}
